package com.leyou.store.data.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 门店订单
 * </p>
 *
 * @author xhh
 * @since 2022-07-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="StoreOrder对象", description="")
public class StoreOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "门店订单主键")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "业务员id")
    private Integer salesmanId;

    @ApiModelProperty(value = "商品id")
    private Integer goodsId;

    @ApiModelProperty(value = "编号")
    private String number;

    @ApiModelProperty(value = "数量")
    private Integer amount;

    @ApiModelProperty(value = "金额")
    private BigDecimal price;

    @ApiModelProperty(value = "实际金额")
    private BigDecimal priceActual;

    @ApiModelProperty(value = "优惠券抵扣金额")
    private BigDecimal priceCoupon;

    @ApiModelProperty(value = "支付方式 (1-微信，2-支付宝，3-银行卡)")
    private Integer paymentMethod;

    @ApiModelProperty(value = "状态(1-未付款，2-未发货，3-已发货，4-已收货，5-申请退款，6-已处理退款)")
    private Integer state;

      @TableField(fill = FieldFill.INSERT)
    private Date insertTime;

      @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date modifiedTime;

    @TableLogic
    private Integer deleted;


}
